// 个人信息头部模块组件
<template>
  <div class="myheader">
    <div class="left">
      <!-- 有2个插槽slot，需要name属性区分 -->
      <slot name="left"></slot>
    </div>
    <div class="title">{{title}}</div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
  },
};
</script>

<style lang="less" scoped>
.myheader {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1 * 100vw/360 solid #ccc;
  background: #222;
  color: #fff;
  > div:nth-child(1),
  div:nth-child(3) {
    padding: 0 10 * 100vw/360;
  }
  > div:nth-child(2) {
    font-weight: bold;
    text-align: center;
  }
}
</style>